local shehu = fk.CreateSkill {

  name = "joy__shehu",

  tags = { Skill.Compulsory, },

}



shehu:addEffect(fk.TargetSpecified, {
  name = "joy__shehu",
  anim_type = "offensive",
  events = {fk.TargetSpecified},
  frequency = Skill.Compulsory,
  can_trigger = function(self, event, target, player, data)
    local to = player.room:getPlayerById(data.to)
    return target == player and player:hasSkill(shehu.name) and data.card.trueName == "slash" and to:getMark("@@joy__xue") > 0 and not to:isKongcheng()
  end,
  on_use = function(self, event, target, player, data)
    local to = player.room:getPlayerById(data.to)
    if not player.dead and not to.dead then
      local card = player.room:askForCardChosen(player, to, "h", shehu.name)
      player.room:throwCard(card,shehu.name,to,player)
    end
  end,
})

return shehu